package com.example.demo.service.impl;
import org.apache.ibatis.annotations.Param;
import javax.annotation.Resource;
import java.util.List;
import com.example.demo.entity.Dynamic_results;
import com.example.demo.dao.Dynamic_resultsMapper;
import com.example.demo.service.IDynamic_resultsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.plugins.Page;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hanfei
 * @since 2021-05-13
 */
@Service
public class Dynamic_resultsServiceImpl extends ServiceImpl<Dynamic_resultsMapper, Dynamic_results> implements IDynamic_resultsService {
        @Resource
        public Dynamic_resultsMapper mapper;

        public Dynamic_resultsMapper getMapper() {
        return mapper;
        }

        public void setMapper(Dynamic_resultsMapper mapper) {
        this.mapper = mapper;
        }

        public Page<Dynamic_results> findByKey(Page<Dynamic_results> var1, @Param("key") String key){
        var1.setRecords(mapper.findByKey(var1,key));
        return var1;
        }
        public Page<Dynamic_results> findByKeyAndAll(Page<Dynamic_results> var1, @Param("key") String key,Dynamic_results entity){
        var1.setRecords(mapper.findByKeyAndAll(var1,key,entity));
        return var1;
        }
        }
